﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class BetInfoRet : Message
    {
        public static int TYPE = 12;
        public static int ID = 13;

        public int BetType { get; set; } // 1下注 2跟注 3弃牌
        public int LocationIndex { get; set; } // 下注/跟注的玩家
        public int BetOrCallScore { get; set; } //下注或跟注的金额


        public void decode(Input _in)
        {
            BetType = _in.readInt();
            LocationIndex = _in.readInt();
            BetOrCallScore = _in.readInt();
        }

        public void encode(Output _out)
        {
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("BetInfoRet[betType={0}, UserID={1}, betOrCallScore ={2}]", BetType,
                LocationIndex, BetOrCallScore);
        }
    }
}